/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UserInterface;

import javax.swing.SwingWorker;

/**
 *
 * @author Home
 */
public class TSW2 extends SwingWorker<Void, Void>  {

    ProjectorGUINew pgn;

    public TSW2(ProjectorGUINew pgn) {
        this.pgn = pgn;
    }

    @Override
    protected Void doInBackground() throws Exception {
        int i=0;
        while(!pgn.setCamImage){
            i++;
            setProgress(i);
        }
        return null;
    }

}
